<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		$.alert("<@s.m 'global.prompt'/>","<@s.m 'error.checkRecord'/>");
		return;
	}
	$.confirm(doDelete,"<@s.m 'global.confirm'/>","<@s.m 'global.confirm.delete'/>");
}
function doDelete(){
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "cmsScoreItem.function"/> - <@s.m "global.list"/></div>
	<form class="ropt">
	    <input type="hidden" name="groupId" value="${groupId!}"/>
	    <input class="pfzgl" type="submit" value="<@s.m "cmsScoreGroup.function"/>" onclick="this.form.action='../scoregroup/v_list.do';"/>
		<input class="add" type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input type="hidden" name="groupId" value="${groupId!}"/>
<@p.table value=pagination;cmsScoreItem,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${cmsScoreItem.id}'/><#t/>
	</@p.column><#t/>
	<@p.column title="ID">${cmsScoreItem.id}</@p.column><#t/>
	<@p.column code="cmsScoreGroup.name">${cmsScoreItem.group.name}</@p.column><#t/>
	<@p.column code="cmsScoreItem.name">${cmsScoreItem.name}</@p.column><#t/>
	<@p.column code="cmsScoreItem.score">${cmsScoreItem.score!}</@p.column><#t/>
	<@p.column code="cmsScoreItem.priority">${cmsScoreItem.priority!}</@p.column><#t/>
	<@p.column code="cmsScoreItem.imagePath">${cmsScoreItem.imagePath!}</@p.column><#t/>
	<@p.column code="global.operate" align="center">
		<a href="v_edit.do?id=${cmsScoreItem.id}&groupId=${groupId!}&pageNo=${pageNo!}" class="pn-opt"><@s.m "global.edit"/></a> | <#rt/>
		<a href="o_delete.do?ids=${cmsScoreItem.id}&groupId=${groupId!}&pageNo=${pageNo!}" onclick="if(!$.confirmToUrl(this.href)) {return false;}" class="pn-opt"><@s.m "global.delete"/></a><#t/>
	</@p.column><#t/>
</@p.table>
<div style="background:url(${base}/res/common/img/theme/boxTitleBG.jpg) repeat-x; height:20px; overflow:hidden;">
<input class="del-button" type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/style="float:left; border-right:1px solid #ffffff;">
</div>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>